package org.jeecg.modules.ws.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.ws.entity.WsBondInfo;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Description: 债券信息管理
 * @Author: jeecg-boot
 * @Date:   2025-03-27
 * @Version: V1.0
 */
public interface IWsBondInfoService extends IService<WsBondInfo> {

    Result<?> uploadExcel(MultipartFile file, HttpServletRequest request, HttpServletResponse response)throws IOException;

    ModelAndView exportSampleExcel(HttpServletRequest request, WsBondInfo wsBondInfo);

    /**
     * 根据债券代码获取债券信息
     * @param bondCode
     * @return
     */
    WsBondInfo queryByBondCode(String bondCode);
}
